package com.ecloud.support.generator.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 页面跳转控制
 *
 * @author LiuGangQiang Create in 2021/04/15
 */
@Controller
public class ViewsController {

    @GetMapping("/")
    public String index() {
        return "/views/index.html";
    }

    @GetMapping("/html/databases")
    public String databases() {
        return "/views/code/databases.html";
    }

    @GetMapping("/html/templates")
    public String templates() {
        return "/views/code/templates.html";
    }

    @GetMapping("/html/templatesets")
    public String templatesets() {
        return "/views/code/templatesets.html";
    }

    @GetMapping("/html/tables")
    public String tables() {
        return "/views/code/tables.html";
    }

    @GetMapping("/html/fields")
    public String fields() {
        return "/views/code/fields.html";
    }
}
